<?php

use Illuminate\Http\Request;
use App\Http\Middleware\Header;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
Route::any('/user/shop_photo','UserController@shop_photo')->middleware(Header::class);
Route::any('/user/shop_coupon','UserController@shop_coupon')->middleware(Header::class);
Route::any('/user/shop_type','UserController@shop_type')->middleware(Header::class);
Route::any('/user/shop_show','UserController@shop_show')->middleware(Header::class);
route::resource('shop','ShopController');
route::any('qiniu','ShopController@qiniu');
route::any('del','ShopController@del');
route::any('obligation','ShopController@obligation');
route::any('info','ShopController@info');
Route::any('/user/shop_price_shop','UserController@shop_price_shop')->middleware(Header::class);
Route::any('/user/elasticsearch','UserController@elasticsearch')->middleware(Header::class);
Route::any('/user/elasticsearchAdd','UserController@elasticsearchAdd')->middleware(Header::class);
Route::any('/user/elasticsearchAddone','UserController@elasticsearchAddone')->middleware(Header::class);
Route::any('/user/elasticsearchDelete','UserController@elasticsearchDelete')->middleware(Header::class);
Route::any('/user/search','UserController@search')->middleware(Header::class);
Route::any('/user/search_pu','UserController@search_pu')->middleware(Header::class);
Route::any('/user/ceshi','UserController@ceshi')->middleware(Header::class);
Route::any('/user/gaoliang','UserController@gaoliang')->middleware(Header::class);
Route::any('/user/redisshow','UserController@redisshow')->middleware(Header::class);
